import { cardCache, toast } from 'nc-lightapp-front';
import config from '../config';
const { setDefData } = cardCache;

export default function (record, index, props) {
    setDefData(config.pageinfoCache, config.datasource, this.props.table.getTablePageInfo(config.headcode));
    props.pushTo(`/card?bxdpk=${record.pk_jkbx.value}`, {
        status: 'add',
        bxdpk: record.pk_jkbx.value
    });
}
